#ifndef SIMPLEAMQPCLIENT_CONNECTIONCLOSEDEXCEPTION_H
#define SIMPLEAMQPCLIENT_CONNECTIONCLOSEDEXCEPTION_H

#include <stdexcept>

#include "SimpleAmqpClient/Util.h"


namespace AmqpClient {

/**
 * "Connection is closed" exception
 */
class SIMPLEAMQPCLIENT_EXPORT ConnectionClosedException
    : public std::runtime_error {
 public:
  /// Constructor
  explicit ConnectionClosedException()
      : std::runtime_error("Connection is closed") {}
};
}  // namespace AmqpClient
#endif  // SIMPLEAMQPCLIENT_CONNECTIONCLOSEDEXCEPTION_H
